from gevent import monkey; monkey.patch_all()
from gevent.pywsgi import WSGIServer
import gevent
import web

urls = ("/", "index",
        '/long', 'long_polling')

class index:
    def GET(self):
        return '<html>Hello, world!<br><a href="/long">/long</a></html>'


if __name__ == "__main__":
    application = web.application(urls, globals()).wsgifunc()
    WSGIServer(('', 8088), application).serve_forever()
